package com.huabo.contract.mysql.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * <p>
 * 
 * </p>
 *
 * @author huabo
 * @since 2021-10-19
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="TblOrganization对象", description="")
@Table(name = "TBL_ORGANIZATION")
public class TblOrganizationMySql implements Serializable {
//经办人、申请部门、纠纷承办人
    public static final Integer AUDITTYPE = 1;

    @JSONField(serialize = false)
    @Transient
    private Set<TblOrganizationMySql> children = new HashSet();

 @Transient
private TblOrganizationMySql tblOrganization;

	private static final long serialVersionUID = -5754340813001254466L;
    public static final String WPZJK = "wpzjk";
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY,generator = "select HIBERNATE_SEQUENCE.nextval from dual")
    @TableId("ORGID")
        private BigDecimal orgid;

    @TableField("ORGNAME")
    @ApiModelProperty(value = "公司名称")
    private String orgname;

    @TableField("FATHERORGID")
    private BigDecimal fatherorgid;

    @TableField("ORGNUMBER")
    @ApiModelProperty(value = "公司编号")
    private String orgnumber;

    @TableField("ORGMENO")
    @ApiModelProperty(value = "公司简介")
    private String orgmeno;

    @TableField("MEMO")
    @ApiModelProperty(value = "备注")
    private String memo;

    @TableField("ICODE")
    private String icode;

    @TableField("ORGTYPE")
    private Integer orgtype;

    @TableField("AUDITTYPE")
    private Integer auditType;

    @TableField("STATUS")
    private Integer status;

    @TableField("ISZY")
    private String iszy;

    @TableField("HYZSKTYPE")
    private String hyzsktype;

    @TableField("ORDERID")
    private Integer orderid;

    @TableField("OUTSIDEID")
    private Integer outsideid;

    @TableField("OUTSIDEOPENDID")
    private String outsideopendid;

    @ApiModelProperty(value = "是否使用自动编号 0 不使用；1 使用")
    @TableField("ISAUTONUMBER")
    private Integer isautonumber;

    @TableField("ORGCREATE")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private Date orgcreate;

    @TableField("ISINITIALIZATION")
    private Integer isinitialization;

    @ApiModelProperty(value = "职务")
    @TableField("DUTIES")
    private String duties;

    @ApiModelProperty(value = "行业编号")
    @TableField("INDUSTRYID")
    private Integer industryid;

    @ApiModelProperty(value = "新增来源于微信 1为微信 0为pc")
    @TableField("BYWX")
    private String bywx;

    @TableField("DATASOURCE")
    private String datasource;

    @TableField("HISTORYCODE")
    private String historycode;

    @TableField("HISTORYDEPARTMENTID")
    private String historydepartmentid;

    public char size() {
        return 0;
    }

    public Object get(int i) {
        return null;
    }





}
